import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2023/4/15 8:33
 * 年会抽奖  打表记录 注意数据类型
 * 抄送列表
 */
public class Day35 {
    //----------------------------------------------
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String list = scanner.nextLine();

            String name = scanner.nextLine();
            solution(list,name);
        }
    }

    private static void solution(String list, String name) {
        char[] chars  = list.toCharArray();
        List<String> compList = new ArrayList<>();
       int len = list.length();
       StringBuilder sb = new StringBuilder();
       int count =0;
        for (int i = 0; i < len; i++) {
            char c = chars[i];
            if (c=='"'){
                count++;
            }else {
                if (count==1){
                    sb.append(c);
                }else if (count==0){
                    if (c==','){
                        compList.add(sb.toString());
                        sb = new StringBuilder();
                    }else{
                        sb.append(c);
                    }

                }
            }
            if (count==2){
                compList.add(sb.toString());
                sb=new StringBuilder();
                count =0;
                ++i;
            }else if (i==len-1){
                compList.add(sb.toString());
            }
        }
        int size =compList.size();
        boolean flag = false;
        for (int i = 0; i < size; i++) {
            if (compList.get(i).equals(name)){
                flag=true;
                System.out.println("Ignore");
            }
        }
        if (!flag){
            System.out.println("Important!");
        }

    }


    //-------------------------------------------------
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);

        while (scanner.hasNext()) {
            int num = scanner.nextInt();
            double res = solution1(num) * 100.0;
            System.out.printf("%.2f%c\n", res, '%');
        }
    }

    private static double solution1(int num) {
        if (num < 0 || num > 20) {
            return -1;
        }

        double[] notSelf = new double[21];
        double[] all = new double[21];
        notSelf[0] = 0;
        notSelf[1] = 0;
        notSelf[2] = 1;
        all[0] = 0;
        all[1] = 1;
        all[2] = 2;

        for (int i = 3; i <= num; i++) {
            notSelf[i] = (i - 1) * (notSelf[i - 1] + notSelf[i - 2]);
            all[i] = i * all[i - 1];
        }

        return (1.0 * notSelf[num]) / all[num];
    }
}
